home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Enigma Amiga CD
/
Listati
/
63-Marzo-Listato2.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-09-02
|
543b
|
18 lines
/*******************************************************************************
* Listato 2 - Funzione WaitEvent che gestisce l'attesa di un evento *
*******************************************************************************/
#include <exec/types.h>
#include <intuition/intuition.h>
void WaitEvent(struct MsgPort *porta,struct IntuiMessage *mess)
{
struct IntuiMessage *msg;
while ((msg = (struct IntuiMessage *)GetMsg(porta)) == NULL)
WaitPort(porta);
CopyMem(msg,mess,sizeof(struct IntuiMessage));
return;
}